{include file="public/header" title="伯乐王教育后台管理" /}
    <section class="container-fluid" style="margin-top: 60px;">
		{include file="public/aside" news='active' }
		<div class="col-xs-9  col-xs-offset-3">
			<ol class="breadcrumb">
	          <li><a href="#">首页</a></li>
	          <li class="active">新闻</li>
	        </ol>
	        <div class="panel panel-default">
		     <div class="panel-body" id="changepanel">
		      <div class="panel2">
		      	<form id="news" method="post" action="{:url('news/update')}" enctype="multipart/form-data">
		          <input type="hidden" name="id" required class="form-control" value="{$list.id}">
		          <div class="form-group">
		            <label class="control-label" for="title">文章标题</label>
		            <input type="text" name="title" required class="form-control" id="title" placeholder="新闻标题" value="{$list.title}">
		          </div>
		          <div class="form-group">
		            <label class="control-label" for="backgroundimage">标题背景图片上传</label>
		            <input type="file" id="backgroundimage" name='backgroundimage'>
		            <p class="help-block">若不设定背景图片 则为默认背景图片。仅支持jpg,png,gif格式</p>
		            <img width="100%" id="demoimg" src="{$list.img}" alt="">
		          </div>
		          <label class="control-label" for="editor">新闻主要内容</label>
		          <script id="editor" name="content" type="text/plain" style="height:500px;">
		          	{$list.content}
		          </script>
		          <br>
		          <button type="submit" class="btn btn-default btn-success">提交审核</button>
		        </form>
		      </div>
		     </div>
	        </div>
        </div>
	</section>
	{load href="__PUBLIC__static/js/jquery.min.js"}
	{load href="__PUBLIC__static/js/jquery.validate.min.js"}
	<script type="text/javascript" charset="utf-8" src="__PUBLIC__admin/js/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" charset="utf-8" src="__PUBLIC__admin/js/ueditor/third-party/zeroclipboard/ZeroClipboard.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__admin/js/ueditor/ueditor.all.js"> </script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__admin/js/ueditor/lang/zh-cn/zh-cn.js"></script>
	<script data-main="__PUBLIC__admin/js/main1" src="__PUBLIC__admin/js/require.js"></script>
	{include file="public/footer"}